package com.liufei.array;


/**
 *
 */
public class ArrList {

    private final int DEFAULT_SIZE =10 ; //
    private String[] arr =new String[DEFAULT_SIZE];
    private final int N=1;
    private int length=0;

    void add(String value){
        if (length==arr.length){
            String[] temp= new  String[DEFAULT_SIZE+N*DEFAULT_SIZE];
            for (int i=0;i<arr.length;i++){
                temp[i]=arr[i];
            }
            arr=temp;
        }
        arr[length++]=value;
    }

    boolean remove(int index){
        if (index<0||index>size()){
            return false;
        }
        for (int j=0;j<size){}
    }




}
